import Vue from "vue"
import vuex from "vuex"
import * as actions from './actions'
import * as getters from './getters'
import * as mutations from './mutactions'
Vue.use(vuex)

export const store = new vuex.Store({
  state: {
    //设置属性
    menuItems: {},
    currentUser: null,
    isLogin: false
  },
  getters,
  //获取属性

  mutations,
  //改变属性,
  actions
  //异步属性
})
